import Vue from "vue";
import Router from "vue-router";

import design from "@/views/design";
import main from "@/views/main";
import test from "@/views/test";
import Preview from "@/views/Preview";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "main",
      redirect: "/main"
    },
    {
      path: "/design",
      name: "design",
      component: () => import("@/views/design")
    },

    {
      path: "/selltable",
      name: "selltable",
      component: () => import("@/views/selltable")
    },
    {
      path: "/computedtest",
      name: "computedtest",
      component: () => import("@/views/computedtest")
    },
    {
      path: "/main",
      name: "main",
      component: () => import("@/views/main")
    },
    {
      path: "/test",
      name: "test",
      component: test
    },
    {
      path: "/preview",
      name: "Preview",
      component: () => import("@/views/Preview")
    }
  ]
});
